.class Lcom/estrongs/android/taskmanager/dj;
.super Landroid/os/AsyncTask;


# instance fields
.field private final synthetic a:Z

.field private final synthetic b:Landroid/app/Activity;

.field private final synthetic c:Z


# direct methods
.method constructor <init>(ZLandroid/app/Activity;Z)V
    .locals 0

    iput-boolean p1, p0, Lcom/estrongs/android/taskmanager/dj;->a:Z

    iput-object p2, p0, Lcom/estrongs/android/taskmanager/dj;->b:Landroid/app/Activity;

    iput-boolean p3, p0, Lcom/estrongs/android/taskmanager/dj;->c:Z

    invoke-direct {p0}, Landroid/os/AsyncTask;-><init>()V

    return-void
.end method


# virtual methods
.method protected varargs a([Ljava/lang/Void;)Ljava/lang/Void;
    .locals 3

    iget-boolean v0, p0, Lcom/estrongs/android/taskmanager/dj;->a:Z

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/estrongs/android/taskmanager/dj;->b:Landroid/app/Activity;

    new-instance v1, Lcom/estrongs/android/taskmanager/dk;

    iget-boolean v2, p0, Lcom/estrongs/android/taskmanager/dj;->c:Z

    invoke-direct {v1, p0, v2}, Lcom/estrongs/android/taskmanager/dk;-><init>(Lcom/estrongs/android/taskmanager/dj;Z)V

    invoke-virtual {v0, v1}, Landroid/app/Activity;->runOnUiThread(Ljava/lang/Runnable;)V

    :cond_0
    iget-boolean v0, p0, Lcom/estrongs/android/taskmanager/dj;->c:Z

    if-eqz v0, :cond_2

    invoke-static {}, Lcom/estrongs/android/taskmanager/cz;->f()Landroid/bluetooth/BluetoothAdapter;

    move-result-object v0

    invoke-virtual {v0}, Landroid/bluetooth/BluetoothAdapter;->enable()Z

    :goto_0
    iget-boolean v0, p0, Lcom/estrongs/android/taskmanager/dj;->a:Z

    if-eqz v0, :cond_1

    iget-object v0, p0, Lcom/estrongs/android/taskmanager/dj;->b:Landroid/app/Activity;

    new-instance v1, Lcom/estrongs/android/taskmanager/dl;

    iget-boolean v2, p0, Lcom/estrongs/android/taskmanager/dj;->c:Z

    invoke-direct {v1, p0, v2}, Lcom/estrongs/android/taskmanager/dl;-><init>(Lcom/estrongs/android/taskmanager/dj;Z)V

    invoke-virtual {v0, v1}, Landroid/app/Activity;->runOnUiThread(Ljava/lang/Runnable;)V

    :cond_1
    const/4 v0, 0x0

    return-object v0

    :cond_2
    invoke-static {}, Lcom/estrongs/android/taskmanager/cz;->f()Landroid/bluetooth/BluetoothAdapter;

    move-result-object v0

    invoke-virtual {v0}, Landroid/bluetooth/BluetoothAdapter;->disable()Z

    goto :goto_0
.end method

.method protected varargs synthetic doInBackground([Ljava/lang/Object;)Ljava/lang/Object;
    .locals 1

    check-cast p1, [Ljava/lang/Void;

    invoke-virtual {p0, p1}, Lcom/estrongs/android/taskmanager/dj;->a([Ljava/lang/Void;)Ljava/lang/Void;

    move-result-object v0

    return-object v0
.end method
